package com.aaa.zuul.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Xiujie Yu
 * @Date 2021-01-22
 * @Time 9:51
 */
@FeignClient("ssoService")
public interface RemoteLoginService {


    /**
     * 功能描述:调用远程方法验证token
     * @param token String
     * @return boolean
     */
    @GetMapping("/userLogin/checkToken")
    boolean checkToken(@RequestHeader("token") String token);
}
